package com.hxzy.shop.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

@Data
@ApiModel("分销记录")
public class DistributorRecord implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @ApiModelProperty("id")
    private Long id;

    /**
     * 订单id
     */
    @ApiModelProperty("订单id")
    private Long orderId;

    /**
     * 支付会员id
     */
    @ApiModelProperty("支付会员id")
    private Long payMemberId;

    /**
     * 分销员id
     */
    @ApiModelProperty("分销员id")
    private Long distributorId;

    /**
     * 药品id
     */
    @ApiModelProperty("药品id")
    private Long drugId;

    /**
     * 药品数量
     */
    @ApiModelProperty("药品数量")
    private Long drugNum;

    /**
     * 药品价格
     */
    @ApiModelProperty("药品价格")
    private BigDecimal drugPrice;

    /**
     * 佣金比例
     */
    @ApiModelProperty("佣金比例")
    private Double commissionRate;

    /**
     * 佣金
     */
    @ApiModelProperty("佣金")
    private BigDecimal commission;

    /**
     * 商户id
     */
    @ApiModelProperty("商户id")
    private Long merchantId;

    /**
     * 创建时间
     */
    @ApiModelProperty("创建时间")
    private Date createTime;

    /**
     * 是否结算
     */
    @ApiModelProperty("是否结算")
    private Boolean settle;
}
